package iscas.order.clients;

import iscas.order.common.CustomResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "reserve", url = "http://reserve.demo.svc.cluster.local/api")
// localhost:8004
//@FeignClient(name = "reserve", url = "http://localhost:8004/api")
public interface ReserveFeignClient {
    @GetMapping("/reserve/getReserve")
    CustomResult getReserve(@RequestParam("orderContent") String orderContent);
}
